import axios from 'axios'
import qs from 'qs'

if(process.env.NODE_ENV === 'development'){
    console.log(process.env)
}
//携带cookie需要开启
axios.defaults.withCredentials = true
// axios.defaults.baseURL=`http://${process.env.VUE_APP_BASE_URL}`
axios.defaults.transformRequest = function(data){
    return qs.stringify(data)
}

export default axios